package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiModuleMessage;

public class Mmochat_ServerListInfoMessage extends SkymobiModuleMessage {
	private int dstModuleId;
	private String serverName;
	private String gson_serverMap;

	public Mmochat_ServerListInfoMessage() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_1_2);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		serverName = in.getPrefixedString(1);
		gson_serverMap = in.getPrefixedString(2);
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putPrefixedString(serverName, 1);
		out.putPrefixedString(gson_serverMap, 2);
	}

	public int getDstModuleId() {
		return dstModuleId;
	}

	public void setDstModuleId(int dstModuleId) {
		this.dstModuleId = dstModuleId;
		setDstId(dstModuleId);
	}

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getGson_serverMap() {
		return gson_serverMap;
	}

	public void setGson_serverMap(String gsonServerMap) {
		gson_serverMap = gsonServerMap;
	}

}
